package xyz.wanwanwan.www.hrm.client.courseclient;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import xyz.wanwanwan.www.hrm.client.fallback.CourseMQFallbackFactory;
import xyz.wanwanwan.www.hrm.util.AjaxResult;
import xyz.wanwanwan.www.vo.email.SendEmailVo;
import xyz.wanwanwan.www.vo.sms.SendSMSVo;
import xyz.wanwanwan.www.vo.system.SendSystemVo;

@FeignClient(value = "rabbit-server",fallbackFactory = CourseMQFallbackFactory.class)
public interface RabbitmqClient {
    @PostMapping("/mq/sms")
    AjaxResult sendSMS(@RequestBody SendSMSVo smsVo);
    @PostMapping("/mq/email")
    AjaxResult sendEmail(@RequestBody SendEmailVo emailVo);
    @PostMapping("/mq/system")
    AjaxResult sendSystem(@RequestBody SendSystemVo systemVo);
}
